//index.js
//获取应用实例
const app = getApp()
const jx = 'HelloWorld  '
Page({
  data: {
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000,
    listData: [
      {
        "imgUrls": [{
          "id": 1,
          "src": "../../images/banner_1.png"
        },
        {
          "id": 2,
          "src": "../../images/banner_2.png"
        },
        {
          "id": 3,
          "src": "../../images/banner_3.png"
        }],
        "image_ad": "../../images/image_ad.png",
        "image_bottom": [{
          "id": 1,
          "src": "../../images/bottom_1.png"
        },
        {
          "id": 2,
          "src": "../../images/bottom_2.png"
        },
        {
          "id": 3,
          "src": "../../images/bottom_3.png"
        },
        {
          "id": 4,
          "src": "../../images/bottom_1.png"
        }]
      }
    ]
  },
  //事件处理函数
  bindViewTap: function() {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
   
  },
  getUserInfo: function(e) {
    console.log(e)
    app.globalData.userInfo = e.detail.userInfo
    this.setData({
      userInfo: e.detail.userInfo,
      hasUserInfo: true
    })
  },
  gostart: function () {
    wx.navigateTo({
      url: "../list/list",
    })
  }
})
